package com.springtest;

import org.springframework.beans.BeansException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SpringBootApplication
public class SpringTestApplication {

    public static void main(String[] args) throws BeansException {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        Test test =  applicationContext.getBean("test",Test.class);

        System.out.println(test.returnHH());

        SpringApplication.run(SpringTestApplication.class, args);





    }

}
